<%@ page import="com.dingpeikeji.quickdeer.modules.rentproduct.entity.TDemands" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<c:set var="REACTSTATUS_WAIT" value="<%=TDemands.REACTSTATUS_WAIT %>" />
<c:set var="REACTSTATUS_DONE" value="<%=TDemands.REACTSTATUS_DONE %>" />
<c:set var="REACTSTATUS_SURE" value="<%=TDemands.REACTSTATUS_SURE %>" />
<html>
<head>
	<title>需求报价管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/rentproduct/demandsPrice/waitlist">需求报价列表</a></li>
		<li  class="active"><a href="${ctx}/rentproduct/demandsPrice/busreactlist">已报价列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="tDemands" action="${ctx}/rentproduct/demandsPrice/busreactlist" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>用车时间</th>
				<th>车型</th>
				<th>包车数量</th>
				<th>包车天数</th>
				<th>目的地</th>
				<th>响应人</th>
				<th>响应时间</th>
				<th>报价</th>
				<th>行程描述</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="tDemandsReact">
			<tr>
				<td>
					<fmt:formatDate value="${tDemandsReact.demands.fromdate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					${tDemandsReact.demands.cartype.typename}
				</td>
				<td>
					${tDemandsReact.demands.vehiclenum}
				</td>
				<td>
					${tDemandsReact.demands.rentdays}
				</td>
				<td>
					${tDemandsReact.demands.destcity.sitename}
				</td>
				<td>
					${tDemandsReact.createBy.name}
				</td>				
				<td>
				<fmt:formatDate value="${tDemandsReact.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					${tDemandsReact.price}
				</td>
				<td>
					${tDemands.modeldesc }
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>